package com.csl.ws.server;

import javax.xml.ws.Endpoint;

import com.csl.ws.hotel.sei.GnUpServer;
import com.csl.ws.hotel.sei.GnUpServerImpl;
import com.csl.ws.hotel.sei.JwUpServer;
import com.csl.ws.hotel.sei.JwUpServerImpl;

/**
 * 发布web service
 * @author Administrator
 *
 */
public class ServerTest {
	public static void main(String[] args) {
	//	String address="http://127.0.0.1:8089/upserver/gnup";
		String address1="http://127.0.0.1:8090/upserver/jwup";
//		String address="http://61.163.108.195/upserver/hotelws";
		
		/**
		JiryService jiryService=new JiryServiceImpl();
		System.out.println(jiryService);
		
		PhotoService photoService=new PhotoServiceImpl();
		System.out.println(photoService);
		
		HandlerService handlerService=new HandlerServiceImpl(jiryService,photoService);
		System.out.println(handlerService);
		Endpoint.publish(address, handlerService);
		*/
		//发布境内服务
		/**
		GnUpServer gnUpServer=new GnUpServerImpl();
		System.out.println("gnServer:"+gnUpServer);
		Endpoint.publish(address, gnUpServer);
		*/
		//发布境外服务
		
		JwUpServer jwUpServer=new JwUpServerImpl();
		System.out.println("jwUpServer:"+jwUpServer);
		Endpoint.publish(address1, jwUpServer);
	
		System.out.println("发布 webservice 成功！");
	}
}
